<!DOCTYPE html>
<html>
    
    <head>
        <meta charset="UTF-8">
        <title>小鱼ADMIN</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" href="/public/static/css/font.css">
        <link rel="stylesheet" href="/public/static/css/bgadmin.css">
        <script type="text/javascript" src="/public/static/js/jquery-1.8.0.min.js"></script>
        <script type="text/javascript" src="/public/static/lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="/public/static/js/bgadmin.js"></script>
        <script type="text/javascript" src="/public/static/js/jquery.form.js"></script> 
    </head>
    
    <body>
        <div class="bg-body">
            <form  action="#" method="post" id="mainForm" class="layui-form layui-form-pane">
                <div class="layui-form-item">
                    <label for="name" class="layui-form-label">
                        <span class="bg-red">*&nbsp;&nbsp;</span>角色名
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="r_name_id" name="r_name" required="" lay-verify="required"
                        autocomplete="off" class="layui-input" value="{$roleData.r_name}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><span class="bg-red">*&nbsp;&nbsp;</span>角色界面</label>
                    <div class="layui-input-inline">
                      <select name="interface" id="interface_id" lay-filter="aihao" required="" lay-verify="required">
                        <option value=""></option>
                        <option value="admin">管理员界面</option>
                        <option value="agent">坐席界面</option>
                      </select>
                    </div>
                </div>  

                <div class="layui-form-item layui-form-text">
                    <label for="desc" class="layui-form-label">
                        描述
                    </label>
                    <div class="layui-input-block">
                        <textarea placeholder="请输入内容" id="description_id" name="description" class="layui-textarea">
                            {$roleData.description}
                        </textarea>
                    </div>
                </div>
                <div class="layui-form-item">
                
                <a class="layui-btn" lay-submit="" id="save" lay-filter="add">保存</a>
              </div>
            </form>
            <input type="hidden" name="r_id" id="r_id" value="{$roleData.r_id}">
        </div>
        <script type="text/javascript" src="/public/static/crm/js/role/editRole.js"></script>
        <script type="text/javascript">
        $(function(){
            $("#interface_id").val("{$roleData.interface}");
        })
        </script>
    </body>

</html>